package edu.univercidade.tcc.sap.client;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

import edu.univercidade.tcc.sap.model.User;

@RemoteServiceRelativePath("user")
public interface UserService extends RemoteService {
	boolean isValidUser(String user, String password);

	String loggedUser();

	User[] activeUsers();

	User createUser(String login, String password, String firstname,
			String lastname, String email);
	
	User createUser(User user);
	
	void updateUser(User user);
	
	void deleteUser(User user);
}
